<%@ Assembly Name="RealDolmen.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188"%> 

<%@ Page Language="C#" Inherits="RealDolmen.SharePoint.Controls.FixedLayoutsPageBase" MasterPageFile="~/_layouts/application.master"   EnableViewState="false" EnableViewStateMac="false"   %> 

<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="RealDolmen.SharePoint.ListFeatures" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix="RealDolmen" TagName="ListFeatureActivator" src="~/_controltemplates/ListFeatureActivator.ascx" %>
<%@ Register Tagprefix="RealDolmenControls" Namespace="RealDolmen.Controls" Assembly="RealDolmen.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188" %> 

<script runat="server">
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        
        FindNode(
            "/_layouts/listedit.aspx", 
            string.Format("{0}/_layouts/listedit.aspx?List={1}", SPContext.Current.Web.Url, SPContext.Current.ListId));
        AddNode(
            GetGlobalResourceObject("lf", "ListFeaturesBreadcrumbNode").ToString(), 
            string.Format("{0}/_layouts/ManageListFeatures.aspx?List={1}", SPContext.Current.Web.Url, SPContext.Current.ListId));
    }
    protected override SPBasePermissions RightsRequired
    {
        get
        {
            return SPBasePermissions.ManageLists;
        }
    }
</script>

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <asp:Literal runat="server" Text="<%$Resources:lf, ListFeaturesWindowTitle%>" />
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    <%=string.Format(GetGlobalResourceObject("lf", "ListFeaturesPageTitle").ToString(), SPContext.Current.List.Title)%>
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
    <asp:Literal runat="server" Text="<%$Resources:lf, ListFeaturesPageDescription%>" />
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <RealDolmenControls:FileVersionControl Assembly="RealDolmen.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188" runat="server"/>
    <RealDolmenControls:FileVersionControl Assembly="RealDolmen.SharePoint.ListFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188" runat="server" />
    <RealDolmen:ListFeatureActivator runat="server" ID="featact" />
	<SharePoint:FormDigest runat="server" />
</asp:Content>

